<template>
  <div>
    <div>
      <van-search
        v-model="searchvalue"
        shape="round"
        background="#4fc08d"
        placeholder="请输入搜索内容"
        show-action
        class="search"
      >
        <template #right-icon>
          <van-button
            text="搜索"
            @click="changetab"
            class="searchbtn"
          ></van-button>
        </template>
        <template #action>
          <div class="more">...</div>
        </template>
      </van-search>
    </div>
    <listPage></listPage>
  </div>
</template>

<script>
import listPage from "./listPage.vue";
export default {
  components: { listPage },
  data() {
    return {
      activeName: "money",
      searchvalue: "",
    };
  },
  methods: {
    changetab() {},
  },
};
</script>

<style scoped>
.search {
  background-color: transparent !important;
  padding-left: 20px;
  padding-bottom: 0;
}

::v-deep .van-search__content--round {
  /* 勿删，搜索框外边框 */
  border: 1px solid blue;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
  border-radius: 15px;
}

.more {
  font-size: 50px;
  color: rgb(80, 80, 80);
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 30px;
  width: 30px;
}

.searchbtn {
  width: 50px;
  height: 25px;
  margin-bottom: 5px;
  margin-right: -5px;
  font-size: 14px;
  color: #fff;
  border-radius: 8px;
  padding: 0 5px;
  background-color: #5f94fe;
}

.groundtab :deep(.van-tab__text--ellipsis) {
  font-size: 20px;
}
</style>